home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-05-01 | 1.6 KB | 58 lines | [TEXT/MPS ] |
- % ---------------------------------------------------------------------------
- % Class MACDialogAlert
- %
- % In this module you find the programmers interface to Dialogs and Alerts.
- % It is built on top of the TOOLBOX routines in TOOLBOXDialog.
- % For a description of the routines see Inside Macintosh, chapter 13.
- % MacDialogAlert is only used as prefix on MacDialog and MacAlert
- %
- % 890317/Boris Magnusson
- % 890412/Göran Eriksson
- %
- % ---------------------------------------------------------------------------
-
- external text procedure Text_String="::SInterfaces:Text_String";
- external text procedure String_Text="::SInterfaces:String_Text";
- external class MACPoint="::SInterfaces:MACPoint";
- external class MACRect="::SInterfaces:MACRect";
- external class MACWindow="::SInterfaces:MACWindow";
- external class ToolboxDialog="::SInterfaces:ToolboxDialog";
- MacWindow class MacDialogAlert;
- begin
- ref(ToolboxDialog) TD;
-
-
- % PROCEDURE SetIText(item: Handle; text: Str255);
- PROCEDURE SetIText(item, text255);
- value text255;
- integer item;
- text text255;
- begin
- text Temp;
- temp:-text_String(text255);
- TD.ToolboxSetIText(item, temp);
- end;
-
- % PROCEDURE GetIText(item: Handle; VAR text: Str255);
- PROCEDURE GetIText(item, text255);
- name text255;
- integer item;
- text text255;
- begin
- text Temp;
- temp:-text_String(text255);
- TD.ToolboxGetIText(item, temp);
- text255:-String_Text(Temp);
- end;
-
- % {routines designed only for use in Pascal}
-
- % FUNCTION GetAlrtStage: INTEGER;
- % external Toolbox procedure x="$3EB8, $0A9A" is
-
- % PROCEDURE ResetAlrtStage;
- % external Toolbox procedure x="$4278, $0A9A" is
-
- TD:-new ToolboxDialog;
-
- end;